package com.example.food_contract_system.mapper;

import com.example.food_contract_system.domain.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.food_contract_system.vo.OrderVoByDistinctVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Lhy
* @description 针对表【order】的数据库操作Mapper
* @createDate 2023-07-06 09:22:15
* @Entity com.example.food_contract_system.domain.Order
*/
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    void insertMyself(@Param("orderList") List<Order> order);

    List<OrderVoByDistinctVo> selectOneByDistict(@Param("aId") String aId);

    List<Order> selectListByMyself(@Param("oId") String oId);

    List<Order> selectOneMyself(@Param("i") String i, @Param("aid") String aId);

    int updateMyself(@Param("oId") String oId);

    void deleteMyself(@Param("oId") String oId);
}




